var content = require('../../../public/content');
var checkradio = require('{plus}/checkradio');

return extend(content, {
    target:'#balance-sheet',
    path:'/balance-sheet/',
    data:{
        title:'资产负债表',
        exportsUrl:'http://www.baidu.com',
        printUrl:''
    },
    template:{
        left:renders({
            <%include 'date'%>
            <span class="ui-checkradio ui-checkradio-switches e-mt5">
                <input type="checkbox" name="type" data-on="重分类" data-off="不重分类" value="1">
            </span>
        })
    },
    events:{
        'click .title':function(){
            var layer = require('{pub}/layer');
            layer.fullscreen(extend('../cashflow/main', {
                
            }))
        }
    },
    grid:{
        paging:{
            url:sourceHttp,
            isPage:false
        },
        columns:[{ 
            title:'资产',
            field:'buname',
            align:'left',
            showtitle:true,
            filter:function(value){
                return value
            }
        }, {
            title:'行次',
            width:40,
            content:'number',
            filter:function(value){
                return (value - 1)||''
            }
        }, {
            title:'期末余额',
            field:'buname',
            width:'12%',
            align:'right'
        }, {
            title:'年初余额',
            field:'buname',
            width:'12%',
            align:'right'
        }, {
            title:'负债和所有者权益',
            field:'buname',
            width:'20%',
            align:'left'
        }, {
            title:'行次',
            content:'number',
            width:40
        }, {
            title:'期末余额',
            field:'buname',
            width:'12%',
            align:'right'
        }, {
            title:'年初余额',
            field:'buname',
            width:'12%',
            align:'right'
        }]
    },
    filterQuery:function(data){
        data = content.filterQuery.call(this, data);
        data.type = data.type || '0';
        return data
    }
})